export default {
  getItem: function (key) {
    let value
    try {
      value = localStorage.getItem(key)
    } catch (ex) {
      console.log('localstorage.getItem报错', ex.message)
      // if(__dev__) {
      //   console.log('localstorage.getItem报错', ex.message)
      // }
    } finally {
      return value
    }
  },
  setItem: function (key, value) {
    try {
      localStorage.setItem(key, value)
    } catch (ex) {
      console.log('localstorage.setItem报错', ex.message)
      // if(__dev__) {
      //   console.log('localstorage.setItem报错', ex.message)
      // }
    }
  }
}